package com.aaa.product.service.Impl;

import com.aaa.product.dao.ProductDao;
import com.aaa.product.service.IProductService;
import entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductService implements IProductService {
    @Autowired
    private ProductDao productDao;

    @Override
    public Product findById(Long pid) {
        return productDao.selectById(pid);
    }
}
